<?php $this->load->view('layout/header'); ?>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
//]]>
</script>
<form name="form1" method="post" action="<?php echo site_url('config/config_action').'/'.$info['configid'];?>" onsubmit="javascript:return WebForm_OnSubmit();" id="form1">
<div>
</div>
    <div id="container">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_form">
            <tr class="table_form_title">
                <td colspan="4">
                    <span id="lblTitle">添加</span>网站配置
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    网站状态：
                </td>
                <td>
                    <span id="radIsClose">
                        <input id="radIsClose_0" type="radio" name="isclose" value="1" <?php if($info['isclose'] == 1){echo 'checked="checked"';}?> /><label for="radIsClose_0">是</label>
                        <input id="radIsClose_1" type="radio" name="isclose" value="0" <?php if($info['isclose'] == 0 || empty($info)){echo 'checked="checked"';}?> /><label for="radIsClose_1">否</label>
                    </span>
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    <span class="star">*</span>语言版本：
                </td>
                <td>
                    <input name="languagever" value="<?php echo $info['languagever']?>" type="text" id="languagever" />
                    <span id="languagever_tips" style="color:Red;display:none;">不能为空</span>
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    <span class="star">*</span>网站名称：
                </td>
                <td>
                    <input name="websitename" value="<?php echo $info['websitename']?>" type="text" id="websitename" />
                    <span id="websitename_tips" style="color:Red;display:none;">不能为空</span>
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    <span class="star">*</span>网站目录：
                </td>
                <td>
                    <input name="websitedir" value="<?php echo $info['websitedir']?>" type="text" id="websitedir" />注:以"/"开始,以"/"结束,如"/cn/";如在根目录,则输入"/"
                    <span id="websitedir_tips" style="color:Red;display:none;">不能为空</span>
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    网站关键字：
                </td>
                <td>
                    <textarea name="websitekeywords" rows="8" cols="40" id="websitekeywords"><?php echo $info['websitekeywords']?></textarea>
                    网站关键字:多个请用“,”不超过100个字符,分隔,显示在META中
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    网站描述：
                </td>
                <td>
                    <textarea name="websitedescription" rows="8" cols="40" id="websitedescription"><?php echo $info['websitedescription']?></textarea>
                    不超过200个字符,分隔,显示在META中
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    邮件接收地址(信息反馈)：
                </td>
                <td>
                    <input name="mailreceiveaddressforfeedback" value="<?php echo $info['mailreceiveaddressforfeedback']?>" type="text" id="mailreceiveaddressforfeedback" />多个请用逗号“,”隔开
                </td>
            </tr>
             <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    邮件接收地址(产品订购)：
                </td>
                <td>
                    <input name="mailreceiveaddressforproduct" value="<?php echo $info['mailreceiveaddressforproduct']?>" type="text" id="mailreceiveaddressforproduct" />多个请用逗号“,”隔开
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    邮件接收地址(招聘简历)：
                </td>
                <td>
                    <input name="mailreceiveaddressforjob" value="<?php echo $info['mailreceiveaddressforjob']?>" type="text" id="mailreceiveaddressforjob" />多个请用逗号“,”隔开
                </td>
            </tr>
           <!-- <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    <span class="star">*</span>邮件发送服务器：
                </td>
                <td>
                    <input name="txtMailSmtpServer" type="text" id="txtMailSmtpServer" />
                    <span id="RequiredFieldValidator5" style="color:Red;display:none;">不能为空</span>
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    <span class="star">*</span>邮件发送帐号：
                </td>
                <td>
                    <input name="txtMailUserName" type="text" id="txtMailUserName" />
                    <span id="RequiredFieldValidator6" style="color:Red;display:none;">不能为空</span>
                    <span id="RegularExpressionValidator1" style="color:Red;display:none;">请输入正确的邮箱帐号</span>
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    <span class="star">*</span>邮件发送密码：
                </td>
                <td>
                    <input name="txtMailPassword" type="text" id="txtMailPassword" />
                    <span id="RequiredFieldValidator7" style="color:Red;display:none;">不能为空</span>
                    邮件发送帐号对应的密码,如需更改,请直接输入密码明文,系统将自动进行加密处理
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                </td>
                <td>
                    <a href="javascript:void(0);" onclick="TestMailConfig('form1')">测试邮件配置</a>
                </td>
            </tr> -->
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    PC终端底部信息：
                </td>
                <td>
                    <textarea name="footerinfo" rows="8" cols="40" id="txtFooterInfo"><?php echo $info['footerinfo']?></textarea>
                    支持HTML
                </td>
            </tr>
            <!-- <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    移动终端底部信息：
                </td>
                <td>
                    <textarea name="footerinfoforwap" rows="8" cols="40" id="footerinfoforwap"><?php echo $info['footerinfoforwap']?></textarea>
                    支持HTML
                </td>
            </tr> -->
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    <span class="star">*</span>排序号：
                </td>
                <td>
                    <input name="listid" num="true" type="text" value="<?php echo $info['list']?$info['list']:0;?>" id="listid" />
                    <span id="listid_tips" style="color:Red;display:none;">不能为空</span>
                    <span id="listid_num_tips" style="color:Red;display:none;">只能为数字</span>
                </td>
            </tr>
            <tr class="table_form_btn">
                <td align="right">
                    &nbsp;
                </td>
                <td colspan="3">
                    <input type="submit" value="保存" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="btnSave" />
                    <input type="button" value="返回" onclick="javascript:history.go(-1);" />
                    <span id="errMsg" style="color:Red;"></span>
                </td>
            </tr>
        </table>
    </div>
</form>
<script type="text/javascript">
$('#form1').submit(function() {
    var is = true;
    if (!input_tips($('#languagever'))) {
        is = false;
    }
    if (!input_tips($('#websitename'))) {
        is = false;
    }
    if (!input_tips($('#websitedir'))) {
        is = false;
    }
    if (!input_tips($('#listid'))) {
        is = false;
    }
    return is;
});
</script>
</body>
</html>

